package com.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.RootPanel;

public class MenuClient extends Menu {

	private Hyperlink linkProfil = new Hyperlink("Voir profil","Profil");
	private Hyperlink linkModifier = new Hyperlink("Modifier Profil","Modifier");
	private Hyperlink linkTarif = new Hyperlink("Voir Propositions", "Tarif");
	
	
	public MenuClient(){
		
		initWidget(createMenu()) ;
	}
	
	
	public DecoratorPanel createMenu(){
		
		AbsolutePanel menuClient = new AbsolutePanel();
		menuClient.setSize("388px", "110px");
		
		menuClient.add(linkProfil, 20, 17);

		menuClient.add(linkModifier, 111, 17);
		
		menuClient.add(linkTarif, 245, 17) ;
		
		DecoratorPanel decMenu = new DecoratorPanel();
		
		decMenu.setWidget(menuClient) ;
		
		return decMenu ;
		

		
	}


	/**
	 * @return the linkProfil
	 */
	public Hyperlink getLinkProfil() {
		return linkProfil;
	}


	/**
	 * @param linkProfil the linkProfil to set
	 */
	public void setLinkProfil(Hyperlink linkProfil) {
		this.linkProfil = linkProfil;
	}


	/**
	 * @return the linkModifier
	 */
	public Hyperlink getLinkModifier() {
		return linkModifier;
	}


	/**
	 * @param linkModifier the linkModifier to set
	 */
	public void setLinkModifier(Hyperlink linkModifier) {
		this.linkModifier = linkModifier;
	}


	@Override
	public Hyperlink getLinkBase() {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public Hyperlink getLinkGestion() {
		// TODO Auto-generated method stub
		return null;
	}


	/**
	 * @return the linkTarif
	 */
	public Hyperlink getLinkTarif() {
		return linkTarif;
	}


	/**
	 * @param linkTarif the linkTarif to set
	 */
	public void setLinkTarif(Hyperlink linkTarif) {
		this.linkTarif = linkTarif;
	}
	
	
	
}
